package gweb

type AppHandler interface {
	// RegisterModels(app *GinApp)
	// RegisterRoutes(app *GinApp)
	BeforeRun(app *GinApp)
	OnError(app *GinApp, err error, traceback string)
	OnRouteVersionChanged(app *Context, routeVersion string, reqVersion string)
}

func (app *GinApp) UseHandler(handler AppHandler) {
	app.handlers = append(app.handlers, handler)
}
